/*
author: sailing
date: 2018/11/6
func:
**/

<template>
	<div class="pageBack">
		<mu-appbar style="width: 100%;" color="primary">
		  <mu-button @click="goback()" icon slot="left">
		    <mu-icon value="keyboard_backspace"></mu-icon>
		  </mu-button>
		  
		  <mu-button @click="login()" flat slot="right">登陆</mu-button>
		</mu-appbar>
	</div>
</template>

<script type="text/javascript">
	export default{
		data () {
			return {

			}
		},
		props: ["title"],
		methods: {
			goback () {
				this.$router.back(-1)
				console.log("goback: -1", this.$router)
			},
			login () {
				this.$router.push('/login')
			}
		}
	}
</script>

<style lang='less'>
	.pageBack{
		position:fixed;
		width: 100%;
		top:0px;
	}
</style>